
#include <BMouseEvent>
#include "member_BEvent.h"

using namespace BWE;

BMouseEvent::BMouseEvent() : BEvent()
{

}
BMouseEvent::BMouseEvent(Event type, Button button) : BEvent(type)
{
	event_member(this)->wheel = 0;
	event_member(this)->button = button;
}
BMouseEvent::BMouseEvent(const BEvent& other) : BEvent(other)
{

}
BMouseEvent::~BMouseEvent()
{

}

void BMouseEvent::setButton(Button button)
{
	event_member(this)->button = button;
}
Button BMouseEvent::button() const
{
	return event_member(this)->button;
}

void BMouseEvent::setWheel(int wheel)
{
	event_member(this)->wheel = wheel;
}
int BMouseEvent::wheel() const
{
	return event_member(this)->wheel;
}

void BMouseEvent::setPos(const BPoint& pos)
{
	event_member(this)->pos = pos;
}
void BMouseEvent::setPos(int x, int y)
{
	event_member(this)->pos.set(x, y);
}
const BPoint& BMouseEvent::pos() const
{
	return event_member(this)->pos;
}

void BMouseEvent::setAbsolutePos(const BPoint& absolutePos)
{
	event_member(this)->absolutePos = absolutePos;
}
void BMouseEvent::setAbsolutePos(int x, int y)
{
	event_member(this)->absolutePos.set(x, y);
}
const BPoint& BMouseEvent::absolutePos() const
{
	return event_member(this)->absolutePos;
}

void BMouseEvent::setGlobalPos(const BPoint& globalPos)
{
	event_member(this)->globalPos = globalPos;
}
void BMouseEvent::setGlobalPos(int x, int y)
{
	event_member(this)->globalPos.set(x, y);
}
const BPoint& BMouseEvent::globalPos() const
{
	return event_member(this)->globalPos;
}
